package com.alawn.framework.services.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @Description
 * @auther johnny
 * @create 2019-02-26 15:07
 */

public enum ResourceType implements IEnum<Integer> {

	MODULE(0, "module"), PAGE(1, "page"), BUTTON(2, "button");

	private final int value;

	private final String name;

	private ResourceType(int value, String name) {
		this.value = value;
		this.name = name;
	}

	@Override
	public Integer getValue() {
		return this.value;
	}

	@JsonValue
	public String getName() {
		return this.name;
	}
}
